const Promise = require('./1.promise')
let p = new Promise(function(resolve, reject) {
  // reject()
  setTimeout(function(){
    resolve('hello')
  }, 1000)
})
p.then( value => {
  console.log('val', value)
}, reason => {
  console.log('reason', reason)
})
